package com.cssw.fyzb.core.dao.pay;

import com.cssw.fyzb.core.model.dodb.AdapayNotifyLog;
import org.springframework.stereotype.Repository;


/**
 * @Author yangyiqun
 * @create 2021-1-29 15:16
 */
@Repository
public class PayNotifyDaoImpl implements PayNotifyDao {

    @Override
    public void saveAdapay(String orderNo, String id, String createdTime, String appId, String expend, String endTime,
                           String pay_channel, String status, String payAmt, String originalStr) {
        AdapayNotifyLog adapayNotifyLog = new AdapayNotifyLog();
        adapayNotifyLog.setOrderNo(orderNo);
        adapayNotifyLog.setId(id);
        adapayNotifyLog.setCreatedTime(createdTime);
        adapayNotifyLog.setAppId(appId);
        adapayNotifyLog.setExpend(expend);
        adapayNotifyLog.setEndTime(endTime);
        adapayNotifyLog.setPayChannel(pay_channel);
        adapayNotifyLog.setStatus(status);
        adapayNotifyLog.setPayAmt(payAmt);
        adapayNotifyLog.setOriginalStr(originalStr);
        adapayNotifyLog.save();
    }
}
